/*
 * Copyright © 2018 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
*/

@import "../../styles/variables.scss";

$modeless-width: 980px;
$modeless-height: 450px;
$top-panel-height: 54px;
$right-position: -360px;
$sidepanel-width: 170px;

.pipeline-config-modal {
  z-index: 1060; // overriding default 1300 to make nested modals (1061) visible.
}

.pipeline-configurations-content {
  width: $modeless-width;
  height: $modeless-height;
  background: $grey-06; // this and following properties from .modeless-container
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
  color: $grey-01;
  background-color: white;

  .pipeline-config-tabs-wrapper {
    height: 100%;
    position: relative;

    .configuration-step-navigation {
      position: absolute;
      bottom: 40px;
      left: 215px;
    }
  }
  .cask-configurable-tab {
    height: 100%;

    .cask-tabs.vertical {
      min-height: inherit;
      max-height: inherit;

      > div {
        &:nth-child(2) {
          width: calc(100% - #{$sidepanel-width});
        }
        &:first-child {
          width: $sidepanel-width;
          padding: 0;
          background: transparent;
          border-right: 1px solid $grey-05;
        }

        &.cask-tab-headers {
          .cask-tab-head {
            border-bottom: 1px solid $grey-05;
            padding: 10px 10px 10px 20px;
            &.active-tab {
              color: var(--brand-primary-color);
              background: $grey-07;
              border-left: 0;
            }
            span {
              &.tab-header-icon {
                margin: 0 5px;
                .icon-sliders.icon-svg {
                  transform: rotate(90deg);
                }
              }
            }
          }
        }
        &.tab-content {
          .tab-pane {
            width: 100%;
          }
        }
      }
    }
  }
}
